//
//  MBMutiImageButton.m
//  mZero-iOS
//
//  Created by catch on 16/7/22.
//  Copyright © 2016年 Shenzhen Maker Works Technology Co., Ltd. All rights reserved.
//

#import "MBMutiImageButton.h"
#import "MBMacros.h"


@implementation MBMutiImageButton

-(void)setMutiImageName:(NSString *)mutiImageName{
    if (!mutiImageName) return;
    
    UIImage* image = nil;
    if (IsPhone) {
        image = [UIImage imageNamed:mutiImageName];
    }else{
        image = [UIImage imageNamed:[NSString stringWithFormat:@"%@-p",mutiImageName]];
    }
    if (image) {
        [self setImage:image forState:UIControlStateNormal];
    }else{
        NSLog(@"请检查图片是否加入工程%@",mutiImageName);
    }
}

@end
